import request from '@/utils/request'
// 获取交易记录分页数据（/company/trade/getWalletListForCompany）
export const getWalletListForTravel = (data) => request.post('/travel/finance/getWalletListForTravel', data)

// 获取交易记录类型（/company/trade/getTradeTypes）
export const getTradeTypes = (data) => request.post('/company/trade/getTradeTypes', data)

// 获取金额类型（/company/trade/getBalanceTypes）
export const getBalanceTypes = (data) => request.post('/company/trade/getBalanceTypes', data)

// 导出前获取查询数据（/company/trade/expWalletListForCompany）
export const expWalletListForCompany = (data) => request.post('/travel/finance/expWalletListForCompany', data)

// 添加/修改-用户个性设置数据API（post）/company/privateSet/adupPrivateSet
export const adupPrivateSet = (data) => request.post('/company/privateSet/adupPrivateSet', data)

// 获取-用户个性设置数据列表API（post）/company/privateSet/getPrivateSetList
export const getPrivateSetList = (data) => request.post('/company/privateSet/getPrivateSetList', data)

// 通过id获取客户/company/serviceCenter/companyCusFindById
export const companyCusFindById = (data) => request.post('/company/serviceCenter/companyCusFindById', data)

// 获取账户类型（/travel/finance/getBalanceTypes）
export const getBalanceTypes2 = (data) => request.post('/travel/finance/getBalanceTypes', data)

// 获取交易记录类型（/travel/finance/getTradeTypes）
export const getTradeTypes2 = (data) => request.post('/travel/finance/getTradeTypes', data)

// PC端微信充值生成支付二维码（/common/apiPay/wxPayRechargeByQrCode）content-type:application/x-www-form-urlencoded
export const wxPayRechargeByQrCode = (data) => request.post('/common/apiPay/wxPayRechargeByQrCode', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})
//查询微信订单支付状态
export const queryWXPayOrder = (data) => request.post('/common/apiPay/queryWXPayOrder', data)
